<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>

<body>
<div th:if="${param.error}"> 用户名或密码错</div>
<div th:if="${param.logout}"> 您已注销成功 </div>

<form th:action="@{/login}" method="post">
   <table>
       <tr>
           <td>用户名：</td>
           <td><input id="username" type="text" name="username"></td>
       </tr>
       <tr>
           <td>密码：</td>
           <td><input  id="password" type="password" name="password"></td>
        </tr>
        <tr>
            <td colspan="2"><input name="remember-me" type="checkbox" value="true"/>记住我</td>
        </tr>
        <tr>
            <td colspan="2"><button type="submit">登录</button></td>
        </tr>
    </table>
</form>

</body>

</html>